package org.csu.laboratoryequipment.persistence;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.csu.laboratoryequipment.entity.Manager;
import org.springframework.stereotype.Repository;

@Repository
public interface ManagerMapper extends BaseMapper<Manager> {
    @Select("SELECT * FROM manager WHERE username = #{username} AND password = #{password}")
    Manager findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
}
